package pojo;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ErrorCodeEnum {
    SUCESS(200,"操作成功"),
    SUCESSLOGIN(200,"登陆成功"),
    SUCESSREGISTER(200,"创建用户成功"),
    SUCESSRESET(200,"更改密码成功"),
    USER_ERROR(400, "用户操作异常"),
    RESET_ERROR(400, "更改密码异常"),
    PARAMS_VALIDATE_ERROR(501, "参数校验失败"),
    REGISTER_ERROR(400, "创建用户失败,密码或用户名错误"),
    LOGIN_ERROR(400, "登陆失败，密码或用户名错误"),
    SYSTEM_ERROR(500, "系统异常"),
    OTHER(999, "其它异常");



    private Integer code;
    private String message;
}
